package org.jeecg.modules.ywPalletEnter.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.common.api.vo.Result;
import org.jeecg.modules.ywPalletEnter.entity.YwPalletEnterDetail;
import org.jeecg.modules.ywPalletEnter.entity.YwPalletEnterMain;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;

/**
 * @Description: 托盘入库
 * @Author: jeecg-boot
 * @Date: 2024-08-27
 * @Version: V1.0
 */
public interface IYwPalletEnterMainService extends IService<YwPalletEnterMain> {

    /**
     * 添加一对多
     *
     */
    public void saveMain(YwPalletEnterMain ywPalletEnterMain, List<YwPalletEnterDetail> ywPalletEnterDetailList);

    /**
     * 确认入库
     * @param id yw_pallet_enter_main主键
     * @return
     */
    Result<?> confirmEnter(String id);

    /**
     * 修改一对多
     *
     */
    public void updateMain(YwPalletEnterMain ywPalletEnterMain, List<YwPalletEnterDetail> ywPalletEnterDetailList);

    /**
     * 删除一对多
     */
    public void delMain(String id);

    /**
     * 批量删除一对多
     */
    public void delBatchMain(Collection<? extends Serializable> idList);

}
